package javaCode.chapter07.Homework.homework10;

/*
编写Doctor类 {name,age,job,gender,sal}
相应的getter() 和 setter()方法，5个参数的构造器，重写父类的equals()方法：public boolean equals(Object obj),
并判断测试类中创建的两个对象是否相等。相等就是判断属性是否相同
 */
public class Homework10 {
    public static void main(String[] args) {
        //测试
        Doctor doctor1 = new Doctor("jack",39,"医生","男",5000);
        Doctor doctor2 = new Doctor("jack",38,"医生","男",5000);

        System.out.println(doctor1.equals(doctor2));
    }
}
